<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
	<TITLE>eSurvey - Bienvenido a eSurvey!</TITLE>
	<LINK href="styles/general.css" type="text/css" rel="stylesheet">
	<LINK href="styles/login.css" type="text/css" rel="stylesheet">
	<SCRIPT src="jquery/jquery.js" type="text/javascript"></SCRIPT>
	<SCRIPT src="js/global.js" type="text/javascript"></SCRIPT>
	<SCRIPT src="js/login.js" type="text/javascript"></SCRIPT>
</HEAD>
<%
	if (session.getAttribute("username") != null) {
		response.sendRedirect("userMySurveys.jsp");
	} else {
%>
<BODY onload="javascript: checkURL();">
	<DIV id="general">
		<DIV id="header">
			<%@ include file="header.jsp" %>
		</DIV>
		<DIV id="content">
			<DIV id="main">
				<H1>Control de acceso para encuestadores</H1>
				<FORM id="loginForm" onsubmit="return checkLogin();" action="getSession.jsp" method="post">
					<DIV id="login">
						<FIELDSET>
						<UL>
							<LI>
								<DIV id="warning">
								</DIV>
							</LI>
							<LI>
								<LABEL id="user" class="required user" for="username">
									Usuario:
								</LABEL>
								<INPUT id="username" type="text" class="textfield" tabindex="1" name="username">
							</LI>
							<LI>
								<LABEL id="pass" class="required" for="password">
									Contrase&ntilde;a:
								</LABEL>
								<INPUT id="password" type="password" class="textfield" tabindex="2" name="password">
							</LI>
							<LI>
								<INPUT id="rememberMe" type="checkbox" class="checkbox" tabindex="3">
								<LABEL class="remember" for="rememberMe">
									Recordarme
								</LABEL>
							</LI>
							<LI>
								<INPUT type="submit" class="button" tabindex="4" value="Entrar">
							</LI>
						</UL>
						</FIELDSET>
						<DIV id="register">
							<P>
								&iquest;No es miembro? <A href="register.jsp">Crear</A> una cuenta.
							</P>
							<P>
								&iquest;Olvid&oacute; su contrase&ntilde;a?  <A href="rescurePassword.jsp" title="Recuperar contrase&ntilde;a" href="?">Vamos a recuperarla!</A>
							</P>
						</DIV>
					</DIV>
				</FORM>
			</DIV>
			<DIV id="nav">
				<%@ include file="mainTabs.html" %>
			</DIV>
		</DIV>
		<DIV id="footer">
			<%@ include file="footer.jsp" %>
		</DIV>
	</DIV>
</BODY>
<%
	}
%>
</HTML>
